package cn.wenhe9.novel.domain.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author DuJinliang
 * 2022/6/3
 */
@Data
public class BookPublishVo {
    private String bookDesc;

    @NotBlank(message = "小说名称不能为空")
    private String bookName;

    @NotNull(message = "分类id不能为空")
    private Long categoryId;

    @NotNull(message = "分类名称不能为空")
    private String categoryName;

    private Integer isVip;

    private String picUrl;

    @NotNull(message = "作品方向不能为空")
    private Integer workDirection;
}
